package com.example.demo.mapper;

import com.example.demo.base.BaseMapper;
import com.example.demo.dto.StudentDto;
import com.example.demo.entity.Student;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

/**
 * @author
 * @date
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface StudentMapper extends BaseMapper<StudentDto, Student> {

    /**
     * 转换
     * @param student 原始数据
     * @return /
     */
    @Override
    StudentDto toDto(Student student);
}
